import request from '@/utils/request'

// 菜单列表
export function getMenuList(data) {
  return request({
    url: '/menu/index',
    method: 'post',
    data
  })
}

// 菜单信息
export function getMenuInfo(data) {
  return request({
    url: '/menu/info',
    method: 'post',
    data
  })
}

// 菜单项目信息
export function xmMenuInfo(data) {
  return request({
    url: '/menu/project',
    method: 'post',
    data
  })
}

// 新增/编辑 菜单
export function addOrEditMenuInfo(data) {
  return request({
    url: '/menu/form',
    method: 'post',
    data
  })
}

// 菜单项目分组
export function menuXmGroup(data) {
  return request({
    url: '/menu/project-menus',
    method: 'post',
    data
  })
}

// 菜单项目分组
export function menuDEL(data) {
  return request({
    url: '/menu/del',
    method: 'post',
    data
  })
}

// 菜单树
export function menuTree(data) {
  return request({
    url: '/menu/tree-list',
    method: 'post',
    data
  })
}
